using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
namespace MicroMsg.UI.Util
{
	public class StoryBoardHelper
	{
		public static Storyboard StartStory(string storyName, UIElement element)
		{
			Storyboard storyboard = Application.get_Current().get_Resources().get_Item("DlgShowAni") as Storyboard;
			if (storyboard == null)
			{
				return null;
			}
			storyboard.Stop();
			element.set_RenderTransform(new CompositeTransform());
			Storyboard.SetTarget(storyboard, element);
			storyboard.Begin();
			return storyboard;
		}
	}
}
